package cn.tedu.fresheveryday.exception;

import cn.tedu.fresheveryday.restful.ResponseCode;
import lombok.Data;

/**
 * service层自定义异常
 */
@Data
public class ServiceException extends RuntimeException {
    private ResponseCode responseCode;

    public ServiceException(ResponseCode responseCode, String message) {
        super(message);

        setResponseCode(responseCode);
    }

}